package com.liveinstars.common;

import java.util.stream.Stream;

/**
 * Created by guoyanjiang on 2018/5/17.
 */
public enum ClientType {
    ios, android, web;

    public static boolean contains(String from) {
        return Stream.of(values()).anyMatch(type -> type.name().equals(from));
    }

    public static boolean needChechVersion(String from){
        return Stream.of(ios, android).anyMatch(type -> type.name().equals(from));
    }
}
